﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using PPI.WebConsumer.PPI.Svc;
using PPI.General;

namespace PPI.WebConsumer
{
    public class WVendor_Visit_XMissionStructures_Pole
    {

        public static Int32 Save(Int32 poleId, Int32 assetId, Int32 topTypeId, Int32 speciesId, Int32 treatmentId, Int32 year, Int32 classId, double latitude, double longitude, double altitude, Int32 satelliteCount, DateTime satelliteTime, string aid, Int32 lvisit, string number, double length, string lvisitor, bool solutionAvailable)
        {
            ConfigReader reader = ConfigReader.GetInstance();
            PPI.Svc.Service1 svc = new Service1();
            return
                svc.DVendor_Visit_XMissionStructures_Pole_Save(poleId, assetId, topTypeId, speciesId, treatmentId, year,
                                                               classId, latitude, longitude, altitude, satelliteCount,
                                                               satelliteTime, aid, lvisit, number, length, lvisitor,
                                                               solutionAvailable, reader.ConectionMode);
        }


        public static void Delete(Int32 poleId)
        {
            ConfigReader reader = ConfigReader.GetInstance();
            PPI.Svc.Service1 svc = new Service1();
            svc.DVendor_Visit_XMissionStructures_Pole_Delete(poleId,reader.ConectionMode);

        }
    }
}
